package pushup.model;

public class Statistics {
	
	private int maxSimilarity = 0;
	
	public void handleSimilarity(int similarityStrength){
		if (maxSimilarity < similarityStrength){
			maxSimilarity = similarityStrength;
		}
	}
	
	public void reset(){
		maxSimilarity = 0;
	}
	
	public double balance(double similarity, double maxValue){
		return (similarity / maxSimilarity) * maxValue;
	}

	public int getMaxSimilarity() {
		return maxSimilarity;
	}

}
